|
|
|
|
|
|
|
Public Property Let DatabaseName(ByVal vNewValue As String)
'
strDBName = vNewValue
frmFind.Data1.DatabaseName = strDBName
'
End Property |
|
|
|
|
| |
|
|
|
|
All the property routines you'll code here refer to the frmFind form. This form will be built in the next section of the chapter. If you attempt to run this project before building the frmFind form, you'll receive errors. |
|
|
|
|
|
|
|
|
|
|
Next, add the Connect property to the project and enter the code from Listing 12.7. |
|
|
|
|
|
|
|
|
Listing 12.7. Coding the Connect property procedures. |
|
|
|
|
|
|
|
|
Public Property Get Connect() As String
'
Connect = frmFind.Data1.Connect
'
End Property
Public Property Let Connect(ByVal vNewValue As String)
'
strConnect = vNewValue
frmFind.Data1.Connect = strConnect
'
End Property |
|
|
|
|
|
|
|
|
Now add the RecordSource property and enter the code from Listing 12.8. |
|
|
|
|
|
|
|
|
Listing 12.8. Adding the RecordSource property. |
|
|
|
|
|
|
|
|
Public Property Get RecordSource() As String
'
RecordSource = frmFind.Data1.RecordSource
'
End Property |
|
|
|
|
|